<template>
  <div>
    <el-container>
      <!--  侧边栏    -->
      <el-aside width="200px">
        <el-menu>
          <el-menu-item>员工管理</el-menu-item>
          <el-menu-item>车辆管理</el-menu-item>
          <el-menu-item>围栏管理</el-menu-item>
        </el-menu>
      </el-aside>
      <el-container>
        <!-- 右侧顶部条 -->
        <el-header>
          <div style="background-color: #0aa1ed; height: 30px; line-height: 30px;">
            <h2 style="color: #fff" >智慧车辆管理系统-IVOS</h2>
          </div>
        </el-header>
        <!-- 右侧主体 -->
        <el-main>
          <el-table :data="vehicleArr" >
            <el-table-column label="序号" type="index" width="80" align="center"></el-table-column>
            <el-table-column label="品牌" prop="brand" align="center"></el-table-column>
            <el-table-column label="型号" prop="model" align="center"></el-table-column>
            <el-table-column label="车牌号" prop="license" align="center"></el-table-column>
            <el-table-column label="颜色" prop="color" align="center"></el-table-column>
            <el-table-column label="公里数" prop="km" align="center"></el-table-column>
          </el-table>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
import {ref} from "vue";

const vehicleArr = ref([
    {brand: '奔驰', model: 'C-300', license: 'A1234',color: 'red',km: '10000'},
    {brand: '宝马', model: 'X5', license: 'B1234',color: 'blue',km: '20000'},
    {brand: '奥迪', model: 'A6', license: 'C1234',color: 'yellow',km: '30000'},
    {brand: '特斯拉', model: 'Model S', license: 'D1234',color: 'green',km: '40000'},
    {brand: '奔驰', model: 'C-300', license: 'A1234',color: 'red',km: '10000'},
    {brand: '宝马', model: 'X5', license: 'B1234',color: 'blue',km: '20000'},
    {brand: '奥迪', model: 'A6', license: 'C1234',color: 'yellow',km: '30000'},
    {brand: '特斯拉', model: 'Model S', license: 'D1234',color: 'green',km: '40000'},
    {brand: '比亚迪', model: 'i8', license: 'E1234',color: 'pink',km: '50000'},
    {brand: '大众', model: 'CC', license: 'F1234',color: 'black',km: '60000'}
])
</script>

<style scoped>

</style>